package my_test.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by admin on 2017/1/12.
 */
@Controller
@RequestMapping("/hi")
public class ShowSomething {
    @RequestMapping("/hello")
    public String helloHtml(Model model){
        model.addAttribute("hello","from TemplateController.helloHtml");
        return"hello";
    }
}
